/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
    const { router, controller } = app;
    // router.get('/', controller.home.index);
    router.get("/list", controller.home.index);

    //上传文件
    router.post("/upload", controller.upload.file);
    //删除服务器里的文件
    router.post("/clear", controller.upload.clear);
};
